package tom.shared;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class InvItem implements Serializable {
	private static final long serialVersionUID = -7685094296961350109L;

	public InvItem() {
		this.refundPrc = 0.0;
		this.refundQty = 0.0;
	}

	public InvItem clone() {
		InvItem it = new InvItem();
		it.invNo = invNo;
		it.item = item;
		it.proCode = proCode;
		it.proName = proName;
		it.unitPrice = unitPrice;
		it.unit = unit;
		it.discount = discount;
		it.qty = qty;
		it.total = total;
		it.vat = vat;
		it.vatAmt = vatAmt;
		it.stkCode = stkCode;
		it.refundPrc = refundPrc;
		it.refundQty = refundQty;
		it.tmpRefundQty = tmpRefundQty;
		it.tmpDiscount = tmpDiscount;
		it.tmpRefundTotal = tmpRefundTotal;
		it.tmpVatAmt = tmpVatAmt;
		it.status = status;
		return it;
	}

	public Integer invNo;
	public Integer item;
	public String proCode;
	public String proName;
	public Double unitPrice;
	public String unit;
	public Double discount;
	public Double qty;
	public Double total;
	public Double vat;
	public Double vatAmt;
	public String stkCode;
	// public String refundCode;
	public Double refundQty = 0.0;
	public Double refundPrc = 0.0;
	public Double refundTotal = 0.0;
	public Integer refundItem;
	public String status;
	public String creUser;
	public Date creTime;
	public String modUser;
	public Date modTime;
	public List<Stock> stocks;
	public Product product;
	public Integer dcLevel = 1;
	public Double tmpRefundQty = 0.0;
	public Double tmpDiscount = 0.0;
	public Double tmpRefundTotal = 0.0;
	public Double tmpVatAmt = 0.0;
	public boolean calcPriceBack = false;
	public boolean edited = false;
}
